//
//  AwardListTableViewCell.m
//  HongFuShop
//
//  Created by chirui on 2017/9/29.
//  Copyright © 2017年 Shui. All rights reserved.
//

#import "AwardListTableViewCell.h"

@implementation AwardListTableViewCell


-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self =[super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
    }
    return self;
}

+(NSString *)reuseIdentifier {
    
    NSString * reuseIdentifier =@"AwardListTableViewCell";
    return reuseIdentifier;
}

-(void)setStatisLabel:(UILabel *)statisLabel {
    _statisLabel = statisLabel;
    
    statisLabel.layer.cornerRadius = 13.f;
    statisLabel.layer.masksToBounds = YES;
    statisLabel.layer.borderWidth = 0.8f;
    statisLabel.layer.borderColor = [UIColor redColor].CGColor;
}
-(void)setAwardModel:(AwardModel *)awardModel {

    _awardModel = awardModel;
    
    [self.goodsImage sd_setImageWithURL:ImageUrl(awardModel.img_src) placeholderImage:ImageName(@"img_new_default")];
    self.goodsName.text = awardModel.title;
    self.detailsName.text = [NSString stringWithFormat:@"奖品：%@",awardModel.award];
    
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
